provider Mobile Builds GET /api/0/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/size-analysis/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/size-analysis/
Retrieve Size Analysis results for a given artifact
Retrieve size analysis results for a given artifact. Returns size metrics including download size, install size, and optional insights. When a base artifact exists (either from commit comparison or via the `baseArtifactId` parameter), comparison data showing size differences is included. The response `state` field indicates the analysis status: - `PENDING`: Analysis has not started yet. - `PROCESSING`: Analysis is currently running. - `FAILED` / `NOT_RAN`: Analysis did not complete; `errorCode` and `errorMessage` are included. - `COMPLETED`: Analysis finished successfully with full size data.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string
artifact_id path required
The ID of the build artifact.
string
baseArtifactId query
Optional ID of the base artifact to compare against. If not provided, uses the default base head artifact.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

retrieveSizeAnalysisResultsForAGivenArtifact
GET/api/0/organizations/{organization_id_or_slug}/preprodartifacts/{artifact_id}/size-analysis/
Retrieve size analysis results for a given artifact. Returns size metrics including download size, install size, and optional insights. When a base artifact exists (either from commit comparison or via the `baseArtifactId` parameter), comparison data showing size differences is included. The response `state` field indicates the analysis status: - `PENDING`: Analysis has not started yet. - `PROCESSING`: Analysis is currently running. - `FAILED` / `NOT_RAN`: Analysis did not complete; `errorCode` and `errorMessage` are included. - `COMPLETED`: Analysis finished successfully with full size data.

Parameters

required

The ID or slug of the organization the resource belongs to.

required

The ID of the build artifact.

Optional ID of the base artifact to compare against. If not provided, uses the default base head artifact.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.retrieveSizeAnalysisResultsForAGivenArtifact()